//
//
//
//
//
//
// WinUtil.h
//
// Utility functions
//

#ifndef _WIN_UTIL_H_
#define _WIN_UTIL_H_

#include "stdafx.h"

PBITMAPINFO CreateBitmapInfoStruct(HWND hwnd, HBITMAP hBmp);

void CreateBMPFile(HWND hwnd, LPTSTR pszFile, PBITMAPINFO pbi, 
                  HBITMAP hBMP, HDC hDC) ;


BOOL SaveBmp(LPCTSTR szPath, HBITMAP hBitmap);

HBITMAP CopyDCToBitmap(HDC hDC, LPRECT lpRect);

BOOL SaveBmpToClipboard(HWND hWnd, HBITMAP bitMap);

BOOL AddNotificationIcon(HINSTANCE hInst, HWND hwnd, UINT message, HICON hIcon, LPCTSTR szTips);

BOOL DeleteNotificationIcon();

void RePaintBMP(HWND hWnd, HBITMAP hBitMap, DCUtil& copyDC);


void SetCursorIndicate(HWND hWnd, POINT mousePoint,DCUtil& copyDC);


void ShowRangTips(HWND hWnd, POINT mousePoint, LPCTSTR tips, HWND& /* OUT */ hDlg);


void MoveWindowTips(HWND hDlg, POINT mousePoint, BOOL ap);

void DestroyWindowTips(HWND hDlg, UINT extCode);


#endif // _WIN_UTIL_H_